# base image
#FROM harbor.xdcplus.com/library/java:jdk8-debian-1.0
FROM harbor.xdcplus.com/library/jdk8-alpine:1.0
ARG MODULE_NAME
ARG IMAGE_MARK
ENV IMAGE_MARK=${IMAGE_MARK:-'1'}

# MAINTAINER
MAINTAINER xdcplus.com

RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' >/etc/timezone

# put jar into container
ADD $MODULE_NAME/target/*.jar app.jar

# running required command
ENTRYPOINT ["/bin/sh", "-c", "set -e && java -Xms2048m -Xmx4096m -Djava.security.egd=file:/dev/./urandom -Dfile.encoding=utf-8 -jar /app.jar"]

